home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20041116-20060924 / 000272_scottac@nb.sympatico.ca_Sun Mar 19 14:56:47 2006.msg < prev    next >
Internet Message Format  |  2020-01-01  |  6KB

  1. Path: newsmaster.cc.columbia.edu!panix!newsfeed-00.mathworks.com!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!nf3.bellglobal.com!ursa-nb00s0.nbnet.nb.ca!53ab2750!not-for-mail
  2. From: "Scott Caissie" <scottac@nb.sympatico.ca>
  3. Newsgroups: comp.protocols.kermit.misc
  4. References: <uGRPf.40748$VV4.591414@ursa-nb00s0.nbnet.nb.ca> <kLSPf.9392$X.1010@news-wrt-01.rdc-nyc.rr.com> <slrne10fck.8bc.fdc@sesame.cc.columbia.edu> <RqZPf.40942$VV4.594211@ursa-nb00s0.nbnet.nb.ca> <slrne10uul.jul.fdc@sesame.cc.columbia.edu> <H81Qf.41050$VV4.597519@ursa-nb00s0.nbnet.nb.ca> <ok2Qf.12766$nB6.1669@news-wrt-01.rdc-nyc.rr.com> <aQkQf.41491$VV4.608841@ursa-nb00s0.nbnet.nb.ca> <pVlQf.14280$4%1.10175@news-wrt-01.rdc-nyc.rr.com>
  5. Subject: Re: closing a macro completely upon connect
  6. Lines: 115
  7. X-Priority: 3
  8. X-MSMail-Priority: Normal
  9. X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
  10. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
  11. X-RFC2646: Format=Flowed; Original
  12. Message-ID: <ATwQf.41716$VV4.616149@ursa-nb00s0.nbnet.nb.ca>
  13. Date: Sat, 11 Mar 2006 09:37:36 GMT
  14. NNTP-Posting-Host: 156.34.15.45
  15. X-Complaints-To: abuse@aliant.net
  16. X-Trace: ursa-nb00s0.nbnet.nb.ca 1142069856 156.34.15.45 (Sat, 11 Mar 2006 05:37:36 AST)
  17. NNTP-Posting-Date: Sat, 11 Mar 2006 05:37:36 AST
  18. Organization: Aliant Internet
  19. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15521
  20.  
  21. > Macros only execute in "command mode".  Its been several years since I
  22. > fixed the bug associated with SET KEY and terminal mode, but my
  23. > recollection is that the macro would be configured to execute and
  24. > "terminal or connect mode" would not be exited.
  25.  
  26. Its this that I'm trying to understand.
  27. You're saying that Macros can be executed in connect mode BUT can not run in 
  28. connect mode with the fix?
  29. Then this fix is something that has no use to me.
  30. I already created a work around to activate any macro via connect mode. I 
  31. want it to actively run while in connect mode.
  32.  
  33. This here was worded bad:
  34. ftp://kermit.columbia.edu/kermit/k95/newbugs.txt
  35. 735. Macros on Keys broken
  36.  
  37. In versions 1.1.21 through 2.1.3, when a SET [TERMINAL] KEY definition
  38. includes a macro invocation, then pressing the key while in the
  39. Terminal screen returns to the command screen (and in some cases might
  40. also fail to execute the macro).
  41.  
  42. All this time I was thinking the act of going to the command screen upon 
  43. invokation was the bug itself. It says 2 things. The secondary issue isn't a 
  44. concern.
  45.  
  46.  
  47. Background program:
  48. Actively saving the scrollback buffer and analying the last 30 lines which 
  49. is slightly more than a full screen worth of work, and do various events.
  50. I have about 7-8 macros which upon activation causes a 'blink' effect. Jumps 
  51. to the command window, does the code involving the scrollback or something 
  52. else, and jumps back to the terminal. As far as my co-workers are concerned, 
  53. the macro 'reads the screen'. I wanted to remove the 'blink' effect. Not all 
  54. the users are comfortable with something that visually appears unstable.
  55.  
  56.  
  57. I do have a technical question.
  58. Lets say I have a macro that calls another macro (which this buggy one 
  59. does). If success, it does XX and Connects. If failure, it does nothing 
  60. aside from Connects.
  61. Now if the ONLY means of getting to the Command window is through a Macro'd 
  62. hotkey, when it is used, does it cancel the immidate macro (which was paused 
  63. via the Connect command), or does it cancel all levels of the macro? (ie: 
  64. The parent macro which summoned it?). I think that is what is happening. 
  65. That afterall is what this thread is about. Not the macro invokation bug, 
  66. but the Macros being nested issue.
  67.  
  68. define test1 {
  69. .......
  70. ; checks keyboard cursor location. if success, then it does the rest
  71. ; this allows 1 key to be used to activate many macros. 1 at a time though 
  72. based on where you are in your work
  73. ; until this point, I never had macros calling macros.
  74. if .... do test2
  75. connect
  76. return
  77. }
  78. define test2 {
  79. ; read scrollback
  80. ; output value
  81. connect
  82. return
  83. }
  84.  
  85.  
  86.  
  87. "Jeffrey Altman" <jaltman2@nyc.rr.com> wrote in message 
  88. news:pVlQf.14280$4%1.10175@news-wrt-01.rdc-nyc.rr.com...
  89. > Scott Caissie wrote:
  90. >> But I still need to know what is being fixed.
  91. >> Fix basically states that macros can be run from the Terminal without the
  92. >> screen changing.
  93. >
  94. > Where does http://www.columbia.edu/~jaltman/k95-fixes-since-213.txt
  95. > indicate that?
  96. >
  97. >> But normally, no complex macros can run (with or without set key) while
  98. >> actively in the Terminal. They basically pause until you go back into the
  99. >> Command window.
  100. >
  101. > Macros only execute in "command mode".  Its been several years since I
  102. > fixed the bug associated with SET KEY and terminal mode, but my
  103. > recollection is that the macro would be configured to execute and
  104. > "terminal or connect mode" would not be exited.
  105. >
  106. >> Can we have things running in the background now while in the Terminal?
  107. >
  108. > You cannot have things executing in the background while in terminal
  109. > mode.  Terminal mode is the "CONNECT" command.  When the terminal window
  110. > is displayed the command processor is blocked in "CONNECT".  Why is
  111. > this?  Because the input and output devices are controlled by the user
  112. > when the CONNECT command is executed.  The input and output devices
  113. > cannot be tampered with by a script.
  114. >
  115. > The CONNECT command provides a trigger functionality that allows a
  116. > script to be executed when specific input patterns are recognized.
  117. > There is also an ability to automated output based upon idle timers.
  118. >
  119. > What is it that you want to run in the background that would not be
  120. > competing with the user interaction with the remote host?
  121. >
  122. >> Thats what it sounds like. Though as far as I know, only 1 macro can run 
  123. >> at
  124. >> a time. Invoking a macro in the Terminal while another macro (in a loop) 
  125. >> is
  126. >> running in the background will cause the one in the background to stop 
  127. >> would
  128. >> it not?
  129. >
  130. > You are correct.  There is one command processor and therefore one macro
  131. > at a time.  This has not changed.
  132. >
  133. > Jeffrey Altman 
  134.  
  135.